﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Example11_Csharp
{
    public interface IA
    {
         void m1();
    }
    public interface IB
    {
         void m2();
    }
    public class C : IA, IB
    {
        public void m1()
        {
            Console.WriteLine("interface A");
        }
        public void m2()
        {
            Console.WriteLine("interface B");
        }
        public void m3()
        {
            Console.WriteLine("hello");
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            IA a = new C();
            a.m1();
            IB b = new C();
            b.m2();
            
           
        }
    }
}
